LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

RDEPENDS:${PN} += "bash"

SRC_URI = "file://phytium-util"

PV = "1.0.0+local"

S = "${WORKDIR}"

inherit obmc-phosphor-systemd

SYSTEMD_SERVICE:${PN} = "power-good-event@.service"

do_install() {
    install -d ${D}${bindir}

    install -m 0755 ${WORKDIR}/phytium-util ${D}${bindir}
}

FILES:${PN} = "${systemd_system_unitdir} ${bindir}"
